package com.mdl.mall.service.impl;

import com.mdl.mall.entity.TFujian;
import com.mdl.mall.mapper.TFujianMapper;
import com.mdl.mall.service.TFujianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Desc
 * @Author madengling
 * @Time 2020/12/9 10:08
 */
@Service
public class TFujianServiceImpl  implements TFujianService {
    @Autowired
    private TFujianMapper tFujianMapper;

    @Override
    public int insertFujian(TFujian tFujian) {
        return tFujianMapper.addTFujian(tFujian);
    }

    @Override
    public TFujian getFujianById(Integer id) {
        if(id!=null){
            return tFujianMapper.getFujianById(id);
        }
        return null;
    }
}
